package com.edu.service;

import com.edu.dao.FileMapper;
import com.edu.dao.MemberMapper;
import com.edu.pojo.File;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public class FileServiceImpl implements FileService{

    private FileMapper fileMapper;

    public void setFileMapper(com.edu.dao.FileMapper fileMapper)
    {
        this.fileMapper = fileMapper;
    }
    public int addFile(File file) {
        return fileMapper.addFile(file);
    }

    public List<File> showAllFile() {
        return fileMapper.showAllFile();
    }

    public int deleteFile(int id) {
        return fileMapper.deleteFile(id);
    }

    public List<File> showNeedFile( int state) {return fileMapper.showNeedFile(state);};
}
